/// Creator:      fengliang
/// CreatDate:    2025-05-19
/// Description:  webService接口  
Class Nur.MNISV3.Service.WebService Extends %SOAP.WebService [ ProcedureBlock ]
{

/// Name of the WebService.
Parameter SERVICENAME = "WsInterface";

/// URL for invoking the WebService.
Parameter LOCATION = "https://114.242.246.235:1443/imedical/webservice/";

/// SOAP Namespace for the WebService
Parameter NAMESPACE = "http://www.dhcc.com.cn";

/// Namespaces of referenced classes will be used in the WSDL.
Parameter USECLASSNAMESPACES = 1;

ClassMethod RequestData(method, params, version) As %GlobalCharacterStream [ WebMethod ]
{
    s ^LMM("RequestDataV3",method)=$lb(method, params, version)
    q ##class(Nur.MNISV3.Service.APIEntry).RequestData(method, params, version)
}

ClassMethod Test() As %GlobalCharacterStream [ WebMethod ]
{
    ;s ret=##class(Nur.MNIS.Service.InfusionOrd).GetInfusionByWard("21","12177")
    ;s ret=##class(Nur.MNIS.Service.InfusionOrd).GetInfusionDetailByWard(195)
    s ret=##class(Nur.MNIS.Service.Logon).Logon("hs01","1","W","")
    q ##class(Nur.MNIS.Common.Utils).DataToStream(ret)
}

}
